home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 006a / robo1_08.zip / FDROBO.B_T < prev    next >
Text File  |  1992-08-30  |  3KB  |  113 lines

  1. @ECHO OFF
  2.  
  3.  set NODE=%1
  4.  if "%1"=="" set NODE=1
  5.  
  6. REM
  7. REM   This Batch  file  is an  example of how  you would run
  8. REM   Robo-Board  with   a  mailer  such   as  FrontDoor  or 
  9. REM   BinkleyTerm. See ECHO MAIL in the Robo-Board documents
  10. REM   for more information.
  11. REM
  12. REM   This batch file assumes you are  passing a node number
  13. REM   to it via the command line. If you  do not pass a node
  14. REM   number to  your ROBO  batch  then  the  node number is 
  15. REM   defaulted to 1. 
  16. REM
  17. REM   If you run a 1 line bbs then  feel free  to remove all
  18. REM   occurences of the text and  dos variable -NODE=%NODE%.
  19. REM
  20. REM   See your dos manual for more information on variables.
  21. REM
  22.  
  23.     @ECHO OFF
  24.     set FD=c:\fd\
  25. :TOP
  26.     cd\robobbs
  27.  
  28.     if exist CHK_MAIL.NOW del CHK_MAIL.NOW
  29.  
  30.     cd\fd
  31.     FD
  32.  
  33. REM     cd\bt
  34. REM     BT       
  35.     
  36.     cd\robobbs
  37.  
  38. REM
  39. REM     The dos errorlevels listed below are only examples,
  40. REM     these must be defined by you in your mailers config
  41. REM     program. All mailers are well documented so setting
  42. REM     up these parameters should not be a problem.
  43. REM
  44.  
  45.     if errorlevel 60 ROBOGR -baud=38400 -NODE=1 %1
  46.     if errorlevel 59 ROBOGR -baud=19200 -NODE=1 %1
  47.     if errorlevel 58 ROBOGR -baud=16800 -NODE=1 %1 
  48.     if errorlevel 57 ROBOGR -baud=14400 -NODE=1 %1        
  49.     if errorlevel 56 ROBOGR -baud=12000 -NODE=1 %1
  50.     if errorlevel 55 ROBOGR -baud=9600  -NODE=1 %1
  51.     if errorlevel 54 ROBOGR -baud=7200  -NODE=1 %1
  52.     if errorlevel 53 ROBOGR -baud=4800  -NODE=1 %1
  53.     if errorlevel 52 ROBOGR -baud=2400  -NODE=1 %1
  54.     if errorlevel 51 ROBOGR -baud=1200  -NODE=1 %1
  55.     if errorlevel 50 ROBOGR -local      -NODE=1 %1
  56.  
  57.     if errorlevel 40 goto MAIL
  58.     if errorlevel 10 goto DONE
  59.     if errorlevel 1  goto ERROR
  60.  
  61. REM     
  62. REM     The file CHK_Mail now is created by Robo-Board if a
  63. REM     user enters one or more ECHO MAIL messages.  With a
  64. REM     dos if  exist statement  you can branch  to a  mail
  65. REM     scan toss program. If you note earlier in this file
  66. REM     CHK_MAIL.NOW is deleted before your mailer or Robo-
  67. REM     get the chance to run.  This prevents scanning when
  68. REM     no mail has been tossed. See ECHO MAIL in the Robo-
  69. REM     Board documents.
  70. REM
  71.  
  72.     if exist CHK_MAIL.NOW goto MAIL
  73.  
  74.     goto TOP
  75.  
  76. :MAIL
  77.  
  78. REM
  79. REM  This where you use your  favorite NET/ECHO mail tosser
  80. REM  to bring ECHO mail messages into your Robo-Board base.
  81. REM  as of yet Robo-Board does not  include a program to do
  82. REM  do this. There are a number of good programs that will
  83. REM  do this well. IMAIL, by Fabiano Fabris has been tested
  84. REM  and found to  work well with Robo-Board. Mail scanning
  85. REM  and  tossing  programs  that  are compatible  with the
  86. REM  Hudson style message base are:
  87. REM     Gecho           By Gerard van der Land
  88. REM     TosScan         By Joaquim Homrighausen
  89. REM     IMAIL           By Fabiano Fabris.
  90. REM     FMAIL           By Folkert J. Wijnstra
  91. REM
  92. REM NOTE: Only IMAIL and FMAIL have been tested. If you get
  93. REM       any of the other  mail utilities  to work  please
  94. REM       send a copy of your BATCH file with your registration.
  95. REM
  96.  
  97.     cd\fmail
  98.     FMAIL toss
  99.     FMAIL scan
  100.     goto TOP
  101.  
  102. :ERROR
  103.     echo. >> ROBO%node%.LOG
  104.     echo ROBOBBS.EXE HAD A FATAL ERROR! >> ROBO%node%.LOG
  105.     echo. >> ROBO%node%.LOG
  106.     echo.
  107.     echo. ROBOBBS.EXE HAD A FATAL ERROR!
  108.     echo.
  109. :DONE
  110.     cd\fd
  111.     echo.
  112.     echo ROBO-BOARD Exited. 
  113.